import request from "./request";

/**
 * 获取评论列表
 */
export const getComments = () => {
  return request({
    method: "GET",
    url: "/comments",
  });
};

/**
* 修改评论状态
*/
export const corrComments = (id) => {
  return request({
    method: "PUT",
    url: `/comments/${id}`,
  });
};

/**
* 删除评论
*/
export const deleteComments = (id) => {
  return request({
    method: "DELETE",
    url: `/comments/${id}`,
  });
};